﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AnQinFrameWorkAPI.Entity.Blog.Entity;

/// <summary>
///     博客邮件模型
/// </summary>
[Table("BlogEmail")]
public class BlogEmailModel
{
    /// <summary>
    ///     博客邮件Id
    /// </summary>
    [Key]
    [MaxLength(36)]
    public Guid Id { get; set; }

    /// <summary>
    ///     博客邮箱地址
    /// </summary>
    [MaxLength(50)]
    public string Email { get; set; }

    /// <summary>
    ///     博客邮箱验证码
    /// </summary>
    [MaxLength(20)]
    public string Code { get; set; }

    /// <summary>
    ///     博客邮箱有效时间
    /// </summary>
    public DateTime EffectiveTime { get; set; }

    /// <summary>
    ///     博客邮箱创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
}